package decaf.error;

import decaf.Location;

public class IncompatTerOpError extends DecafError {
	private String op;
	private String expr;
	
	public IncompatTerOpError(Location location, String op, String expr) {
		super(location);
		this.op = op;
		this.expr = expr;
	}
	
	@Override
	protected String getErrMsg() {
		return "incompatible condition operates: " + op + " and " + expr;
	}
}